
 <div id="content-box">
<?php
if (isset($closeModalbox) && $closeModalbox) 
    echo "<div id='closeModalbox'></div>";

if ($ajax->isAjax()) 
{

	echo $ajax->form('add', 'Dangky', array(
		'model'    => 'Dangky',
		'url'      => array( 'controller' => 'Dangky', 'action' => 'add'),
		'update'   => 'MB_content',
		'complete' => 'closeModalbox()',
        'indicator'=>'PeopleIndicator'
	));
} 
else
{
	echo $form->create('Dangky');
}
?>
<?php 
    echo $this->element('frm_dangtin');
?>
<div id="form_buttons">
<?php 
    echo $form->Button('Thêm',array('class'=>'btnsave'));
    echo $form->Button('Làm lại',array('type' =>'reset','class'=>'btnreset'));
?> 
</div>
</div>
 
 
 